package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.mapper.QccMapper;
import io.github.biezhi.elves.mapper.QccRealTimeMapper;
import io.github.biezhi.elves.model.CompAnnualReports;
import io.github.biezhi.elves.qcc.model.CompAnalysis;
import io.github.biezhi.elves.qcc.model.CompBasic;
import io.github.biezhi.elves.qcc.model.CompBasicInfo;
import io.github.biezhi.elves.qcc.model.CompChangeRecord;
import io.github.biezhi.elves.qcc.model.CompQccCrawl;
import io.github.biezhi.elves.qcc.model.OutboundInvestment;
import io.github.biezhi.elves.service.QccRealTimeService;
import io.github.biezhi.elves.service.QccService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service("qccRealTimeService")
public class QccRealTimeServiceImpl implements QccRealTimeService{

	@Autowired
	private QccRealTimeMapper qccRealTimeMapper;
	
	@Override
	public List<CompBasic> queryCompBasic(Integer num) {
		return qccRealTimeMapper.queryCompBasic(num);
	}

	@Override
	public void updateSpiderState(String compName) {
		qccRealTimeMapper.updateSpiderState(compName);
	}

	@Override
	public void insertSpiderData(CompQccCrawl compQccCrawl) {
		qccRealTimeMapper.insertSpiderData(compQccCrawl);
	}

	@Override
	public List<CompQccCrawl> queryCompQccCrawl(Integer num) {
		return qccRealTimeMapper.queryCompQccCrawl(num);
	}

	@Override
	public void updateResolveState(Long compId) {
		qccRealTimeMapper.updateResolveState(compId);
	}

	@Override
	public void insertCompAnalysis(CompAnalysis compAnalysis) {
		qccRealTimeMapper.insertCompAnalysis(compAnalysis);
	}

	@Override
	public void insertCompChangeRecord(CompChangeRecord compChangeRecord) {
		qccRealTimeMapper.insertCompChangeRecord(compChangeRecord);
	}

	@Override
	public void insertOutboundInvestment(OutboundInvestment outboundInvestment) {
		qccRealTimeMapper.insertOutboundInvestment(outboundInvestment);
	}

	@Override
	public void insertCompBasicInfo(CompBasicInfo compBasicInfo) {
		qccRealTimeMapper.insertCompBasicInfo(compBasicInfo);
	}

	@Override
	public List<CompChangeRecord> queryCompChangeRecord(String qccId) {
		return qccRealTimeMapper.queryCompChangeRecord(qccId);
	}

	@Override
	public List<OutboundInvestment> queryOutboundInvestment(String qccId) {
		return qccRealTimeMapper.queryOutboundInvestment(qccId);
	}

	@Override
	public CompAnalysis queryCompAnalysis(String qccId) {
		return qccRealTimeMapper.queryCompAnalysis(qccId);
	}

	@Override
	public List<CompBasicInfo> queryCompBasicInfo(Integer num) {
		return qccRealTimeMapper.queryCompBasicInfo(num);
	}

	@Override
	public void updateSaveState(String qccId) {
		qccRealTimeMapper.updateSaveState(qccId);
	}

	@Override
	public void updateJsonData(String compBasic, String outboundInvestment, String historicalChange,
			String annualReports, String qccId) {
		qccRealTimeMapper.updateJsonData(compBasic, outboundInvestment, historicalChange, annualReports, qccId);
	}

	@Override
	public List<CompAnnualReports> queryCompAnnualReports(String pripid) {
		return qccRealTimeMapper.queryCompAnnualReports(pripid);
	}

}
